package cn.kgc.commons.config;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * <p>Oss配置类</p>
 * 读取类路径下的application.yml文件中，以alioss开头的属性
 *
 * @author 李孟鸠
 * @Date: 2022年11月29日8:48
 */
@PropertySource(value = "classpath:application.yml",encoding = "UTF-8")
@ConfigurationProperties(prefix="alioss")
@Component
@Data
public class OssFileConfig {
    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
    private String objectName;
    private String osshost;

}
